export default {
  data(){
    return {
      // times数据
      times:localStorage.getItem(this.$route.name)||0
    }
  },
  
  created(){
    // 只有路由才能+1
    if(this.$vnode?.fnOptions?.name==="RouterView"){
      this.times++;
    }
    console.log(this,"this")
    localStorage.setItem(this.$route.name,this.times);
    
  }
}